package com.ruoyi.person.service.impl;

import com.ruoyi.person.domain.DeathApplyFor;
import com.ruoyi.person.mapper.DeathApplyForMapper;
import com.ruoyi.person.service.IDeathApplyForService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 死亡骗保Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-07
 */
@Service
public class DeathApplyForServiceImpl implements IDeathApplyForService
{
    @Autowired
    private DeathApplyForMapper deathApplyForMapper;

    /**
     * 查询死亡骗保
     * 
     * @param id 死亡骗保主键
     * @return 死亡骗保
     */
    @Override
    public DeathApplyFor selectDeathApplyForById(Long id)
    {
        return deathApplyForMapper.selectDeathApplyForById(id);
    }

    /**
     * 查询死亡骗保列表
     * 
     * @param deathApplyFor 死亡骗保
     * @return 死亡骗保
     */
    @Override
    public List<DeathApplyFor> selectDeathApplyForList(DeathApplyFor deathApplyFor)
    {
        return deathApplyForMapper.selectDeathApplyForList(deathApplyFor);
    }

    /**
     * 新增死亡骗保
     * 
     * @param deathApplyFor 死亡骗保
     * @return 结果
     */
    @Override
    public int insertDeathApplyFor(DeathApplyFor deathApplyFor)
    {
        return deathApplyForMapper.insertDeathApplyFor(deathApplyFor);
    }

    /**
     * 修改死亡骗保
     * 
     * @param deathApplyFor 死亡骗保
     * @return 结果
     */
    @Override
    public int updateDeathApplyFor(DeathApplyFor deathApplyFor)
    {
        return deathApplyForMapper.updateDeathApplyFor(deathApplyFor);
    }

    /**
     * 批量删除死亡骗保
     * 
     * @param ids 需要删除的死亡骗保主键
     * @return 结果
     */
    @Override
    public int deleteDeathApplyForByIds(Long[] ids)
    {
        return deathApplyForMapper.deleteDeathApplyForByIds(ids);
    }

    /**
     * 删除死亡骗保信息
     * 
     * @param id 死亡骗保主键
     * @return 结果
     */
    @Override
    public int deleteDeathApplyForById(Long id)
    {
        return deathApplyForMapper.deleteDeathApplyForById(id);
    }
}
